﻿using EFCore.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SService;

namespace WMSWeb.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class PurchasereturndetailController : ControllerBase
    {
        private readonly WmssystemContext myDb;
        private readonly PurchasereturndetailS purchasereturndetailS;

        public PurchasereturndetailController(WmssystemContext myDb, SService.PurchasereturndetailS purchasereturndetailS)
        {
            this.myDb = myDb;
            this.purchasereturndetailS = purchasereturndetailS;
        }
        /// <summary>
        /// 进货退货明细添加
        /// </summary>
        /// <returns></returns>
        /// 
        [HttpPost]
        public async Task<int> Add(PO_Purchasereturndetail pO_Purchasereturndetail)
        {
            return await purchasereturndetailS.Add(pO_Purchasereturndetail);
        }
    }
}
